package com.f5.management.service.imp;

import com.f5.management.dao.MemberDao;
import com.f5.management.dao.PetDao;
import com.f5.management.entity.Member;
import com.f5.management.entity.Pet;
import com.f5.management.entity.Vehicle;
import com.f5.management.service.MemberService;
import com.f5.management.service.PetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

/**
 * @author author
 * @create 2021 -04 - -
 **/
@Service
public class PetServiceImpl implements PetService {
@Autowired
PetDao petDao;

    @Override
    public void add(Pet pet) {
               petDao.insertOne(pet);
    }

    @Override
    public void updatePetById(Pet pet, int id) {

    }

    @Override
    public void deletePet(int id) {

    }

    @Override
    public Vehicle selectPetById(int id) {
        return null;
    }

    @Override
    public List<Vehicle> getAllPet() {
        return null;
    }

    @Override
    public int getCountPets() {
        return 0;
    }
}
